replace custom UDF with spark from_unixtime for ctime transformation#585
replace custom UDF with spark from_unixtime for ctime transformation#585elliVM wants to merge 3 commits intoteragrep:mainfrom
Conversation
eemhu
left a comment
There was a problem hiding this comment.
Doesn't this remove the support for the timeformat parameter?
|
Hey @eemhu Indeed this change does remove the support for a custom From this I concluded that the feature was not used but please correct me if I was wrong. Sparks |
The format set directly in |
|
Okey thank you, I will refactor so that different time formats are supported including default is supported |
…rent time format, default to ISO 8601
Description
Use spark's
functions.from_unixtimeto parse epochs into a timestamp string replacing the old custom UDF.Resulting timestamp strings are now returned in ISO 8601 standard and include zone information.
Example:
epoch
1results into1970-01-01T00:00:01Z.I chose this format but we can use that is supported by the
DateTimeFormatter. The old format was not supported